<?php template('header');?>
<div id="wrapper">
	<div class="content">
		<div class="full">
			<div class="index-banner">
			</div>
		</div>
	<div id="forum-main">
		<div class="full">
			 
			 <!-- 轮播图  -->
			<div class="half">
			 
			<div id="slideBox" class="slideBox">
			  <div class="hd">
				<ul><li>1</li><li>2</li><li>3</li></ul>
			  </div>
			  <div class="bd">
				<ul>
				  <li><a href="#" target="_blank"><img src="http://www.zeroac.com/data/attachment/block/8a/8aac11669bf90d3fcba74755673628e4.jpg" /></a></li>
				  <li><a href="#" target="_blank"><img src="http://www.zeroac.com/data/attachment/block/ee/eeca398ee000278644c8d3706b3b4ccd.jpg" /></a></li>
				  <li><a href="#" target="_blank"><img src="http://www.zeroac.com/data/attachment/block/33/33fdd2fafc95737c671512f4b6a380f2.jpg" /></a></li>
				</ul>
			  </div>

			  <!-- 下面是前/后按钮代码，如果不需要删除即可 -->
			  <a class="prev" href="javascript:void(0)"></a>
			  <a class="next" href="javascript:void(0)"></a>

			</div>


			</div>
			<div class="half">
			  

				   <div class="slideTxtBox">
					  <div class="hd">
						  <ul><li>最新主题</li><li>最新回复</li><li>精华帖子</li><li>通知公告</li></ul>
					  </div>
					  <div class="bd">
						  <?=layout::lists($statsInfo['latestPost']);?>
						  <?=layout::lists($statsInfo['latestPost']);?>
						  <?=layout::lists($statsInfo['postMark']);?>
						  <?=layout::lists($statsInfo['latestPost']);?>
					  </div>
				  </div>


			</div>
		  
		</div>

		<div class="full" style="margin: 20px 0 0 0;">
		  <div class="third">
			<div id="search" class="full">
			  <input type="text" id="search-input" class="danger">
			  <button id="search-btn" class="danger">搜索</button>
			</div>
		  </div>
		  <div class="third btn-group">
			<button class="warning floatl"><a href="/bbs/create">发布帖子</a></button>
			<button class="info floatl"><a href="/bbs/latest">查看新帖</a></button>
			<button class="success floatl"><a href="/bbs/funny">随便看看</a></button>
		  </div>

		  <div class="third btn-group">
			<button class="info floatl">发帖</button>
			<button class="success floatl">发帖</button>
			<button class="danger floatl">发帖</button>
		  </div>

		</div>

	</div>
	<div id="forum-list">
		<div class="full">
		  <?php foreach ($forumList as $forum): ?>
		  <div class="third">
			 <div class="full">
				  <div class="half">
					<?=anchor("/bbs/f/{$forum['id']}",img($forum['logo'],null,'forum-logo'));?>
				  </div>
				  <div class="half">
					  <div class="forum-info">
						  <b>
						  <?=anchor("/bbs/f/{$forum['id']}",$forum['name'])?>
							<span class='red'> 
							<?php $num=isset($forumPosts[$forum['id']]['today_num'])?$forumPosts[$forum['id']]['today_num']:0; ?>
							<?=anchor("/bbs/f/{$forum['id']}",'('.$num.')');?>
							</span>
						  </b>
						  <p>
							主题: <span class='blue'><?=isset($forumPosts[$forum['id']]['post_num'])?$forumPosts[$forum['id']]['post_num']:0?></span>, 
							帖数: <span class="blue"><?=isset($forumPosts[$forum['id']]['total_num'])?$forumPosts[$forum['id']]['total_num']:0?></span>
						  </p>
						  <p> 创建时间: <?=dateFormat($forum['create_time'])?></p>
					  </div>
				  </div>
			</div>
			<div class='full'>
				  <p class="less forum-description">
					<?=$forum['description']?>
				  </p>
			</div>
		  </div>
		  <?php endforeach ?>
		</div>
	  
  
	</div> <!-- end form-list -->
	
		<div class="full">
		<div  id="forum-stats">
		  <b>统计信息</b>
		  <p>
			今日: <?=$statsInfo['dateCount']['today']?> | 昨日: <?=$statsInfo['dateCount']['yestoday']?> |
			帖子: <?=$statsInfo['postCount']?> |
			会员: <?=$statsInfo['userCount']?> |
			欢迎新会员: <?=anchor('/u/'.$statsInfo['latestUser']['id'],$statsInfo['latestUser']['name'])?>
		  </p>
		  <p>在线会员 - 总计 <?=$statsInfo['onlineCount']?> 人在线 - 最高记录是 44000 于 2011-9-28.</p>
		</div>
	</div>
	</div>
</div>
<?php template('footer')?>